#define _CRT_SECURE_NO_WARNINGS 1
#include"Teap.h"

int main()
{
	HP hp;
	HeapInit(&hp);
	HeapPush(&hp, 12);
	HeapPush(&hp, 23);
	HeapPush(&hp, 14);
	HeapPush(&hp, 8);
	HeapPush(&hp, 65);
	HeapPush(&hp, 32);
	HeapPush(&hp, 17);
	HeapPush(&hp, 34);
	HeapPush(&hp, 57);
	HeapPush(&hp, 12);
	HeapPush(&hp, 27);
	HeapPush(&hp, 47);

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);

	}

	//printf("%d ", HeapTop(&hp));

	//HeapPop(&hp);
	//printf("%d ", HeapTop(&hp));

	//HeapPop(&hp);

	//printf("%d ", HeapTop(&hp));

	return 0;
}